package com.qiuzhiyi.adapter;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.li.widget.CircleImageView;
import com.qiuzhiyi.R;
import com.qiuzhiyi.item.AllowanceItem;

/**
 * Author: Li
 * Date: 2017/11/20 0020
 * Description:
 */

public class AllowanceAdapter extends BaseQuickAdapter<AllowanceItem.ListBean,BaseViewHolder> {

    public AllowanceAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, AllowanceItem.ListBean item) {

        CircleImageView imageView=helper.getView(R.id.img_avatar);
        Glide.with(mContext).load(item.getFPic()).error(R.mipmap.icon).into(imageView);
        helper.setText(R.id.txt_name,item.getFName());
        helper.setText(R.id.txt_des,item.getFRemark());
        helper.setText(R.id.txt_salary,"¥:"+item.getFMoney());
    }
}
